package cn.breeze.system.service.impl;

import cn.breeze.basic.service.impl.BaseServiceImpl;
import cn.breeze.system.domain.SystemDictionaryDetail;
import cn.breeze.system.mapper.SystemDictionaryDetailMapper;
import cn.breeze.system.service.ISystemDictionaryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
// 只读事务
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class SystemDictionaryDetailServiceImpl extends BaseServiceImpl<SystemDictionaryDetail> implements ISystemDictionaryDetailService {

    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;

    @Override
    public List<SystemDictionaryDetail> loadType(Long id) {
        return systemDictionaryDetailMapper.loadType(id);
    }
}
